/*
 * @Author: your name
 * @Date: 2022-04-27 10:35:04
 * @LastEditTime: 2022-10-26 15:37:19
 * @LastEditors: YNT 2501512800@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \22-03-19 智慧社区\api\link.js
 */
import wxRequest from '../utils/wx-request'

class SpecialModel extends wxRequest {
  // 垃圾分类
  garbageSorting() {
    return this.request({
      url: `/api/user/garbage_housekeeper/token`,
      method: 'GET',
    })
  }

  getGarbageToken(params) {
    return this.request({
      url: `https://wx.wenyuan-env.com/cloud/gfgj/wechat/token`,
      method: 'GET',
      params,
    })
  }

  getAppSecret() {
    return this.request({
      url: `/admin/v1/screen_data/lajifenlei_key`,
      method: 'GET',
    })
  }

  getTongToken(data) {
    return this.request({
      url: `https://wlsq.jst.zj.gov.cn/zzt/szdz/outApi/authorization/token/get`,
      method: 'POST',
      data,
    })
  }

  getApplications() {
    return this.request({
      url: `/admin/v1/screen_data/apply_sync_push`,
      method: 'GET',
    })
  }

  largeGetToken(data) {
    return this.request({
      url: `/admin/v1/screen_data/wenyuan_env/token`,
      method: 'POST',
      data,
    })
  }
}

export default new SpecialModel()
